﻿using System;

namespace DataDefine
{
    public  static class HMIAddrs
    {
		/// <summary>
		/// HMI.CtrlWork(0-255)
		/// </summary>
		public static byte CtrlWorkHMIAddr = 134;

	}


	[Flags]
	public enum E_CtrlWord:ushort
	{
		SelfChecking =1,
		Stop =2,
		BIT_2 =4,
		/// <summary>
		/// 急停命令
		/// </summary>
		EmergencyStop =8,
		/// <summary>
		/// 正转命令
		/// </summary>
		CWCmd =16,
		/// <summary>
		/// 反转命令
		/// </summary>
		CCWCmd =32,
		/// <summary>
		/// 自动/点动切换
		/// </summary>
		ManualAutomatic =64,
		APhaseStart =128,



		BPhaseStart =256,
		CPhaseStart =512,
		/// <summary>
		/// 故障复位
		/// </summary>
		FaultReset =1024,
		/// <summary>
		/// 继电器操作
		/// </summary>
		RelayCtrl =2048,
		/// <summary>
		/// 刹车控制
		/// </summary>
		BrakeCtrl = 4096,
		/// <summary>
		/// 输入位置信息
		/// </summary>
		PosSend =8192,
		/// <summary>
		/// 手/自动角度位置修正
		/// </summary>
		Ma_Au_AngleCtrl =16384,
		/// <summary>
		/// 恢复默认参数
		/// </summary>
		ParaDefault =32768,
	}
}
